home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 42
/
Amiga Format AFCD42 (Issue 126, Aug 1999).iso
/
-serious-
/
programming
/
mui
/
mcc_transferanim
/
developer
/
autodocs
/
mcc_transferanim.doc
Wrap
Text File
|
1999-05-17
|
13KB
|
471 lines
TABLE OF CONTENTS
TransferAnim.mcc/TransferAnim.mcc
TransferAnim.mcc/MUIA_TransferAnim_BitMap
TransferAnim.mcc/MUIA_TransferAnim_BoingBall
TransferAnim.mcc/MUIA_TransferAnim_Changes
TransferAnim.mcc/MUIA_TransferAnim_DefObjHeight
TransferAnim.mcc/MUIA_TransferAnim_DefObjWidth
TransferAnim.mcc/MUIA_TransferAnim_Delay
TransferAnim.mcc/MUIA_TransferAnim_Depth
TransferAnim.mcc/MUIA_TransferAnim_DisabledFrame
TransferAnim.mcc/MUIA_TransferAnim_DTObj
TransferAnim.mcc/MUIA_TransferAnim_Error
TransferAnim.mcc/MUIA_TransferAnim_File
TransferAnim.mcc/MUIA_TransferAnim_FPS
TransferAnim.mcc/MUIA_TransferAnim_Frame
TransferAnim.mcc/MUIA_TransferAnim_Frames
TransferAnim.mcc/MUIA_TransferAnim_Height
TransferAnim.mcc/MUIA_TransferAnim_MaxWidth
TransferAnim.mcc/MUIA_TransferAnim_Millis
TransferAnim.mcc/MUIA_TransferAnim_NoAnim
TransferAnim.mcc/MUIA_TransferAnim_NoLoop
TransferAnim.mcc/MUIA_TransferAnim_ObjHeight
TransferAnim.mcc/MUIA_TransferAnim_ObjWidth
TransferAnim.mcc/MUIA_TransferAnim_Precision
TransferAnim.mcc/MUIA_TransferAnim_StartFrame
TransferAnim.mcc/MUIA_TransferAnim_SelectedFrame
TransferAnim.mcc/MUIA_TransferAnim_Width
TransferAnim.mcc/MUIA_TransferAnim_ViewMode
TransferAnim.mcc/MUIM_TransferAnim_NoEvent
TransferAnim.mcc/MUIM_TransferAnim_StarTransferAnim
TransferAnim.mcc/MUIM_TransferAnim_StopAnim
TransferAnim.mcc/TransferAnim.mcc
TransferAnim.mcc is a customclass to display transferanimations (as known from
web-browsers). It supports IBrowse, Voyager and AWeb tooltypes to specify
width, height etc for the animation.
It got support for looping animations, no-loop and delay between loops.
You can specify frames per second, FPS, or how many milliseconds you want
to pass between each frame.
It currently makes use of datatypes to load and remap the images, but support
for pre 3.x is planned.
I'm open for suggestions and would love to hear your comments!
To contact the author write to:
Linus McCabe
Rogsholmsv 6
515 32 Viskafors
Sparkle@hehe.com
come.to/sparkle
TransferAnim.mcc/MUIA_TransferAnim_BitMap
NAME
MUIA_TransferAnim_BitMap -- [..G], struct BitMap *
FUNCTION
This tag will hold the pointer to the bitmap containing the frames.
TransferAnim.mcc/MUIA_TransferAnim_BoingBall
NAME
MUIA_TransferAnim_BoingBall -- [I..], BOOL
FUNCTION
By setting this attribute to TRUE during creation, you'll get the
internal boingball animation (which is also used if no animation or
default animation is specified or loadable).
TransferAnim.mcc/MUIA_TransferAnim_Changes
NAME
MUIA_TransferAnim_Changes -- [I..], BOOL
FUNCTION
When this attribute is set to FALSE, the animation will continue
to go even if the object is selected (when having an inputmode)
or disabled.
If it is set to TRUE, the animation will show the frames specified
by MUIA_TransferAnim_DisabledFrame and MUIA_TransferAnim_SelectedFrame when dis-
abled or selected.
SEE ALSO
MUIA_TransferAnim_DisabledFrame, MUIA_TransferAnim_SelectedFrame
TransferAnim.mcc/MUIA_TransferAnim_DefObjHeight
NAME
MUIA_TransferAnim_DefObjHeight -- [I..], long
FUNCTION
Specifies the wished default height of the animationobject when using
MUIV_TransferAnim_Scale or MUIV_TransferAnim_Repeat.
SEE ALSO
MUIA_TransferAnim_DefObjWidth, MUIA_TransferAnim_ObjHeight, MUIA_TransferAnim_ObjWidth
TransferAnim.mcc/MUIA_TransferAnim_DefObjWidth
NAME
MUIA_TransferAnim_DefObjWidth -- [I..], long
FUNCTION
Specifies the wished default width of the animationobject when using
MUIV_TransferAnim_Scale or MUIV_TransferAnim_Repeat.
SEE ALSO
MUIA_TransferAnim_DefObjHeight, MUIA_TransferAnim_ObjHeight, MUIA_TransferAnim_ObjWidth
TransferAnim.mcc/MUIA_TransferAnim_Delay
NAME
MUIA_TransferAnim_Delay -- [ISG], int
FUNCTION
This attribute specifies the time (in milliseconds) that the anim-
ation is held before restarting (when it is set to loop).
Defaults to no delay.
TransferAnim.mcc/MUIA_TransferAnim_Depth
NAME
MUIA_TransferAnim_Depth -- [..G], long
FUNCTION
Holds the depth of the animation bitmap.
TransferAnim.mcc/MUIA_TransferAnim_DisabledFrame
NAME
MUIA_TransferAnim_DisabledFrame -- [IS.], long
FUNCTION
This attribute specifies which frame to show when the object is set
to disabled.
This has no effect unless MUIA_TransferAnim_Changes is set to TRUE (default).
If MUIA_TransferAnim_Changes is set to FALSE, the animation will continue to
display as usual, even if disabled.
TransferAnim.mcc/MUIA_TransferAnim_DTObj
NAME
MUIA_TransferAnim_DTObj -- [..G], APTR
FUNCTION
This attribute holds a pointer to the datatype object, if availible.
TransferAnim.mcc/MUIA_TransferAnim_Error
NAME
MUIA_TransferAnim_Error -- [..G], LONG
FUNCTION
This attribute holds a possible error condition, if something went wrong.
The class will not fail, but might behave differently.
Possible error codes atm are:
ERROR_OBJECT_NOT_FOUND, the file was not found.
DTERROR_INVALID_DATA , the file was not an image.
In the first case, the object might show the prefered default animation (if it
works ok) otherwise it will try to show the internal boingball animation.
TransferAnim.mcc/MUIA_TransferAnim_File
NAME
MUIA_TransferAnim_File -- [ISG], char *
FUNCTION
This tag holds the filename of the animation you wish to display.
If you set this attribute after creation, no result will be seen
until the object go throught a new setup, ie, if it's parent group
is set to Init & ExitChange.
Display information, like number of frames, framewidth, frameheight
etc, will be taken from the file's icon.
Recognized tooltypes are:
SIZE =x,y - the framesize is x by y pixels. (AWeb)
FRAMEWIDTH =x - framewidth is x pixels (Voyager)
WIDTH =x - framewidth is x pixels (IBrowse)
HEIGHT =y - frameheight in pixels
FIRST =x,y - coordinates for the first frame (AWeb)
DELTA =x,y - how many pixels to move in x &
y direction between frames (AWeb)
Tooltypes that are not recognized by browsers (afaik)
FPS =fps - How many frames per second the
animation will be dispalyed by.
SELECTED =f - What frame to show when the animation
is selected (if it has inputmode)
DISABLED =f - What frame to show when the animation
object is disabled.
Selected and disabled will only take place if the MUIA_TransferAnim_Changes
is set to true.
EXAMPLE
TransferAnimObj=TransferAnimObject,
MUIA_TransferAnim_File, "data:anims/cat_anim.jpg",
End;
TransferAnim.mcc/MUIA_TransferAnim_FPS
NAME
MUIA_TransferAnim_FPS -- [ISG], long
FUNCTION
This attribute specifies how many frames per second of the animation
will be displayed.
Defaults to 24.
TransferAnim.mcc/MUIA_TransferAnim_Frame
NAME
MUIA_TransferAnim_Frame -- [ISG], long
FUNCTION
This attribute holds the currently shown frame.
You can manually set this attribute to control you animation.
Probably makes most sence for non playing animations.
TransferAnim.mcc/MUIA_TransferAnim_Frames
NAME
MUIA_TransferAnim_Frames -- [ISG], long
FUNCTION
This attribute specifies how many frames the animation holds.
TransferAnim.mcc/MUIA_TransferAnim_Height
NAME
MUIA_TransferAnim_Height -- [I..], long
FUNCTION
Specifies the height of the animation.
TransferAnim.mcc/MUIA_TransferAnim_MaxWidth
NAME
MUIA_TransferAnim_MaxWidth -- [..G], long
FUNCTION
Holds the width of the entire bitmap.
TransferAnim.mcc/MUIA_TransferAnim_Millis
NAME
MUIA_TransferAnim_Millis -- [ISG], long
FUNCTION
Specifies the delay in microseconds between each frame.
SEE ALSO
MUIA_TransferAnim_FPS
TransferAnim.mcc/MUIA_TransferAnim_NoAnim
NAME
MUIA_TransferAnim_NoAnim -- [ISG], bool
FUNCTION
If this attribute is set to TRUE, the animation wont play.
TransferAnim.mcc/MUIA_TransferAnim_NoLoop
NAME
MUIA_TransferAni